assert_that(p.cargo_process("package"),
execs().with_status(0).with_stderr(&format!("\
+[WARNING] manifest has no documentation[..]
[PACKAGING] foo v0.0.1 ({dir})
[VERIFYING] foo v0.0.1 ({dir})
[COMPILING] foo v0.0.1 ({dir}[..])
"#);
assert_that(p.cargo_process("package"),
execs().with_status(0).with_stderr(&format!("\
+warning: manifest has no description, license, license-file, documentation, \
+homepage or repository. See \
+http://doc.crates.io/manifest.html#package-metadata for more info.
[PACKAGING] foo v0.0.1 ({dir})
[VERIFYING] foo v0.0.1 ({dir})
[COMPILING] foo v0.0.1 ({dir}[..])
",
- dir = p.url()))
- .with_stderr("\
-warning: manifest has no description, license, license-file, documentation, \
-homepage or repository. See \
-http://doc.crates.io/manifest.html#package-metadata for more info."));
+ dir = p.url())));
let p = project("one")
.file("Cargo.toml", r#"
"#);
assert_that(p.cargo_process("package"),
execs().with_status(0).with_stderr(&format!("\
+warning: manifest has no description, documentation, homepage or repository. See \
+http://doc.crates.io/manifest.html#package-metadata for more info.
[PACKAGING] foo v0.0.1 ({dir})
[VERIFYING] foo v0.0.1 ({dir})
[COMPILING] foo v0.0.1 ({dir}[..])
",
- dir = p.url()))
- .with_stderr("\
-warning: manifest has no description, documentation, homepage or repository. See \
-http://doc.crates.io/manifest.html#package-metadata for more info."));
+ dir = p.url())));
let p = project("all")
.file("Cargo.toml", &format!(r#"
println!("package main repo");
assert_that(cargo.clone().arg("package").arg("-v").arg("--no-verify"),
execs().with_status(0).with_stderr("\
+[WARNING] manifest has no description[..]
[PACKAGING] foo v0.0.1 ([..])
[ARCHIVING] [..]
[ARCHIVING] [..]
assert_that(cargo.arg("package").arg("-v").arg("--no-verify")
.cwd(p.root().join("a")),
execs().with_status(0).with_stderr("\
+[WARNING] manifest has no description[..]
[PACKAGING] a v0.0.1 ([..])
[ARCHIVING] [..]
[ARCHIVING] [..]
execs().with_status(0));
assert_that(p.cargo("package"),
execs().with_status(0).with_stderr(&format!("\
+[WARNING] manifest has no description[..]
[PACKAGING] foo v0.0.1 ({dir})
[VERIFYING] foo v0.0.1 ({dir})
[COMPILING] foo v0.0.1 ({dir}[..])
assert_that(p.cargo_process("package").arg("--no-verify").arg("-v"),
execs().with_status(0).with_stderr("\
+[WARNING] manifest has no description[..]
[PACKAGING] foo v0.0.1 ([..])
[ARCHIVING] [..]
[ARCHIVING] [..]
assert_that(p.cargo_process("package").arg("--no-verify").arg("-v"),
execs().with_status(0).with_stderr("\
+[WARNING] manifest has no description[..]
[PACKAGING] foo v0.0.1 ([..])
[ARCHIVING] [..]
[ARCHIVING] [..]
assert_that(::cargo_process().arg("package").cwd(p.root())
.arg("--no-verify").arg("-v"),
execs().with_status(0).with_stderr("\
+[WARNING] manifest has no description[..]
[PACKAGING] foo v0.0.1 ([..])
[ARCHIVING] [..]
[ARCHIVING] [..]
assert_that(::cargo_process().arg("package").cwd(project.root())
.arg("--no-verify").arg("-v"),
- execs().with_status(0).with_stdout_contains("[ARCHIVING] bar/Makefile"));
+ execs().with_status(0).with_stderr_contains("[ARCHIVING] bar/Makefile"));
});
test!(no_duplicates_from_modified_tracked_files {
assert_that(p.cargo_process("package"),
execs().with_status(0).with_stderr(&format!("\
+[WARNING] manifest has no documentation[..]
[PACKAGING] nested v0.0.1 ({dir})
[VERIFYING] nested v0.0.1 ({dir})
[COMPILING] nested v0.0.1 ({dir}[..])
assert_that(p.cargo_process("package"),
execs().with_status(101).with_stderr("\
warning: [..]
+[PACKAGING] foo [..]
[ERROR] failed to prepare local package for uploading
Caused by: